﻿@{
    ViewBag.Title = "Index";
}
<script type="text/javascript" src="~/Areas/Admin/Content/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript">

    var url = document.URL;
    if (url.indexOf("#") > 0 && url.indexOf('access_token') > 0) {
        $.ajax({
            url: "/datasrv/AuthPlatForm/AuthFromDH?" + url.split('#')[1],
            success: function (data) {
                var msg = "";
                if (data.state == "success") {
                    msg = "恭喜！ 您已成功授权 :)";
                } else {
                    msg = "授权失败，请稍后重试!";
                }
                document.write(msg);
            }
        });
    } else {
        location.href = "/Admin/Home/Index";
    }

</script>


